var addPage = avalon.define({
	$id: "page",
	uid: "",
	level:'',
	companyName:'',
	email:''
});

mui.ready(function() {
	var uid = $("#uid").val();
	addPage.uid = uid;
	var parentId=$.getParameter('uid');
	if("" != uid&&parentId!="") {
		mui.ajax('/customer/get.json', {
			data: {
				uid: parentId || addPage.uid
			},
			dataType: 'json',
			success: function(data) {
				if(""!=data&&null!=data){
					addPage.level=data.level;
					addPage.companyName=data.companyName;
					addPage.email=data.email;
				}
			}
		});
	}
});
